package site.timers.game;

public class Equipment extends Item {
    private int attackBonus;
    private int defenseBonus;
    private int magicResistBonus;
    
    public Equipment(String name, String description, int attack, int defense, int magicResist) {
        super(name, description);
        this.attackBonus = attack;
        this.defenseBonus = defense;
        this.magicResistBonus = magicResist;
    }
    
    @Override
    public void use(Character character) {
        // 装备物品时应用加成
        character.equip(this);
    }
    
    // Getters
    public int getAttackBonus() { return attackBonus; }
    public int getDefenseBonus() { return defenseBonus; }
    public int getMagicResistBonus() { return magicResistBonus; }
}